package com.ledict.casefiling.init;

import com.ledict.casefiling.service.SysDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CommandLineRunnerToInitCache implements CommandLineRunner {
    @Autowired
    private SysDictService sysDictService;

    @Override
    public void run(String... strings) throws Exception {
        System.out.println(">>>>>>>>>>>>>>>>> Command Line Runner <<<<<<<<<<<<<<<<");
        sysDictService.selectAll();
    }
}
